﻿@{
    ViewBag.Title = "SelectPer";
    Layout = "~/Views/Shared/_Index.cshtml";  
}

<script>
    var keyValue = $.request("keyValue");
    var userList = '@ViewBag.userList';
    var listObj;
    var optionstr = '';
    $(function() {
        var reg = new RegExp('&quot;', "g");
        userList = userList.replace(reg, "\"");
        listObj = JSON.parse(userList);
        $.each(listObj, function (i) {
            optionstr += "<option value='" + listObj[i].F_Id + "'>" + listObj[i].F_RealName + "</option>";
        });
        $("#person").append(optionstr);
    });
    function submitForm() {
        $.submitForm({
            url: "/Project/GudaoCar/Pass",
            param: { keyValue: keyValue,perKeyValue:$('#person').val() },
            success: function () {
                //$.loading(true);
                //$.reload();
                //$(".btn .btn-primary").click();
                //alert("22");
                //$(".loading-content").click();
                //$("#loadingPage").css("display", "none");
                //location.reload();
                //alert("222");
                //$.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        });
    }
</script>
<html>
    <select id="person" name="person" class="form-control required" style="text-align: center; background-color: beige; color: #3fb998;font-size:20px">

    </select>
</html>

